//
//  ZTTXCommonUtility.m
//  APPDemo
//
//  Created by 郭红旗 on 2021/10/18.
//

#import "ZTTXCommonUtility.h"

@implementation ZTTXCommonUtility

+ (void)performBlockOnMainThread:(DISPATCH_NOESCAPE dispatch_block_t)block {
    if (NSThread.isMainThread) {
        block();
    } else {
        dispatch_sync(dispatch_get_main_queue(), block);
    }
}

@end
